/**
 * 用户模块
 */
import request from '@/utils/request'
import url from 'postcss-url'

/**
 * 用户注册
 * @param {*} data 
 * @returns 
 */
export const register = (data) => { 
    return request({ 
        method:'post',
        url:'/user/register',
        data
    })
}

export const login = (data) => { 
    return request({ 
        method:'post',
        url:'/user/login',
        data
    })
}

/**
 * 更新用户
 * @param {*} data 
 */
export const updateUserInfo = (data) => { 
    return request({ 
        method:'post',
        url:'/user/updateUserInfo',
        data
    })
}
